package com.itcast.spark.baseDataStruct

import org.apache.spark.mllib.linalg.Vectors
import org.apache.spark.mllib.regression.LabeledPoint

/**
 * DESC:本地向量--mllib的LabeledPoint
 */
object _02LabeledPoint {
  def main(args: Array[String]): Unit = {
    //这里声明的是一个LabeledPoint的样例类
    //label和features
    val point: LabeledPoint = LabeledPoint(1.0, Vectors.dense(1.0, 2.0))
    println(point.features)
    println(point.label)
  }
}
